-- GENERATED SPELL FOR [Molten Destroyer] --


function spell0_11659(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(20276,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11659', 2289, 1)
end

function spell1_11659(pUnit, Event) --@Massive Tremor,Self--
pUnit:FullCastSpellOnTarget(19129,pUnit)
pUnit:RegisterEvent('Sorts_11659', 2262, 1)
end

function Sorts_11659(pUnit, Event)
local choix_sorts_11659 = math.random(0, 1)
if choix_sorts_11659 == 0 then
pUnit:RegisterEvent('spell0_11659', 1, 1)
end
if choix_sorts_11659 == 1 then
pUnit:RegisterEvent('spell1_11659', 1, 1)
end
end

function mob11659_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11659', math.random(1500, 3000), 1)
end

function mob11659_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11659_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11659_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11659, 1, 'mob11659_Action')
RegisterUnitEvent(11659, 2, 'mob11659_Leave')
RegisterUnitEvent(11659, 3, 'mob11659_Kill')
RegisterUnitEvent(11659, 4, 'mob11659_Die')
